//
//  encourageBaidu.m
//  EquiriesProject
//
//  Created by qianfeng on 15/11/1.
//  Copyright (c) 2015年 HXH. All rights reserved.
//

#import "encourageBaidu.h"

@interface encourageBaidu ()

@end

@implementation encourageBaidu
{
    UIWebView * webView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1];
    [self createNav];
    [self createdata];
}
-(void)createNav
{
    UINavigationBar * bar = self.navigationController.navigationBar;
    [bar setBackgroundImage:[UIImage imageNamed:@"custom_dialog_btn_bg"] forBarMetrics:UIBarMetricsDefault];
    [self.view addSubview:bar];
    
}


-(void)createdata
{
    webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 64, self.view.bounds.size.width, self.view.bounds.size.height-64)];
    NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://www.baidu.com"]]];
    webView.userInteractionEnabled = YES;
    [self.view addSubview:webView];
    [webView loadRequest:request];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
